package com.konne.nightmare.FastPublicOpinion.ui.information.adapter;

import android.view.View;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.konne.nightmare.FastPublicOpinion.R;
import com.konne.nightmare.FastPublicOpinion.ui.dialog.ClassFourMorePopupWindow;

import java.util.List;

/**
 * @Author: chen
 * @UpdateDate: 1/27/22
 * @UpdateRemark:
 */
public class ClassFourAdapter extends BaseQuickAdapter<String, BaseViewHolder> {


    public ClassFourAdapter(int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.getView(R.id.img_more).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ClassFourMorePopupWindow classFourMorePopupWindow = new ClassFourMorePopupWindow(mContext);
                classFourMorePopupWindow.showAsDropDown(helper.getView(R.id.img_more));
            }
        });
    }

}
